//载入fs模块儿
  let fs = require("fs");
 //打开文件
 let a = fs.openSync("c.txt","a");
 
 fs.writeSync(a,"我是内容","w");
 fs.closeSync(a);
 
 